package com.zhht.checkcop.check.vo;

import java.util.List;

import com.zhbc.framework.utils.StringUtils;
import com.zhbc.framework.vo.SuperVO;

public class MovieVO extends SuperVO{

	private static final long serialVersionUID = 7898250521044467182L;
	private String id;
	private String frontCoverUrl;       //'封面URL',
	private String movieName;           //'电影名称',
	private String description;         //'简介',
	private String updateTime;          //'更新时间',
	private String classifyId;          //'类型ID',
	private String infoClassifyName;    //'类型名称',
	private String infoMagnetUrl;       //'Magnet下载地址',
	private String infoBtUrl;           //'BT下载地址',
	private String infoFtpUrl;           //'BT下载地址',
	private String infoUrl;             //'详情页面的URL',
	private String recommend;           //'0、不推荐   1、推荐',
	private String createTime;          //'创建时间',
	private String D;                   //'是否删除 0 正常  1删除',
	private List<String> picUrl;		//'图片URL地址',
	
	public MovieVO(String id, String frontCoverUrl, String movieName, String description, String updateTime,
			 String classifyId, String infoClassifyName, String infoMagnetUrl, String infoBtUrl,
			String infoFtpUrl, String infoUrl, String recommend, String createTime, String d) {
		super();
		this.id = id;
		this.frontCoverUrl = frontCoverUrl;
		this.movieName = movieName;
		this.description = description;
		this.updateTime = updateTime;
		this.classifyId = classifyId;
		this.infoClassifyName = infoClassifyName;
		this.infoMagnetUrl = infoMagnetUrl;
		this.infoBtUrl = infoBtUrl;
		this.infoFtpUrl = infoFtpUrl;
		this.infoUrl = infoUrl;
		this.recommend = recommend;
		this.createTime = createTime;
		D = d;
	}

	public MovieVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFrontCoverUrl() {
		return frontCoverUrl;
	}

	public void setFrontCoverUrl(String frontCoverUrl) {
		this.frontCoverUrl = frontCoverUrl;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getClassifyId() {
		return classifyId;
	}

	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}

	public String getInfoClassifyName() {
		return infoClassifyName;
	}

	public void setInfoClassifyName(String infoClassifyName) {
		this.infoClassifyName = infoClassifyName;
	}

	public String getInfoMagnetUrl() {
		return infoMagnetUrl;
	}

	public void setInfoMagnetUrl(String infoMagnetUrl) {
		this.infoMagnetUrl = infoMagnetUrl;
	}

	public String getInfoBtUrl() {
		return infoBtUrl;
	}

	public void setInfoBtUrl(String infoBtUrl) {
		this.infoBtUrl = infoBtUrl;
	}

	public String getInfoFtpUrl() {
		return infoFtpUrl;
	}

	public void setInfoFtpUrl(String infoFtpUrl) {
		this.infoFtpUrl = infoFtpUrl;
	}

	public String getInfoUrl() {
		return infoUrl;
	}

	public void setInfoUrl(String infoUrl) {
		this.infoUrl = infoUrl;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getD() {
		return D;
	}

	public void setD(String d) {
		D = d;
	}
	
	@Override
	public String toString() {
		StringBuilder jsonStringBuffer = new StringBuilder("{");
		if (StringUtils.isNotStrTrimNull(this.id)) {
			jsonStringBuffer.append("\"id\":\"").append(this.id).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.frontCoverUrl)) {
			jsonStringBuffer.append("\"frontCoverUrl\":\"").append(this.frontCoverUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.movieName)) {
			jsonStringBuffer.append("\"movieName\":\"").append(this.movieName).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.description)) {
			jsonStringBuffer.append("\"description\":\"").append(this.description).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.updateTime)) {
			jsonStringBuffer.append("\"updateTime\":\"").append(this.updateTime).append("\",");
		}
		if (this.picUrl != null) {
			jsonStringBuffer.append("\"picUrl\":\"").append(this.picUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.classifyId)) {
			jsonStringBuffer.append("\"classifyId\":\"").append(this.classifyId).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.infoClassifyName)) {
			jsonStringBuffer.append("\"infoClassifyName\":\"").append(this.infoClassifyName).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.infoMagnetUrl)) {
			jsonStringBuffer.append("\"infoMagnetUrl\":\"").append(this.infoMagnetUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.infoBtUrl)) {
			jsonStringBuffer.append("\"infoBtUrl\":\"").append(this.infoBtUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.infoFtpUrl)) {
			jsonStringBuffer.append("\"infoFtpUrl\":\"").append(this.infoFtpUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.infoUrl)) {
			jsonStringBuffer.append("\"infoUrl\":\"").append(this.infoUrl).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.recommend)) {
			jsonStringBuffer.append("\"recommend\":\"").append(this.recommend).append("\",");
		}
		if (StringUtils.isNotStrTrimNull(this.createTime)) {
			jsonStringBuffer.append("\"createTime\":\"").append(this.createTime).append("\",");
		}
		String jsonString = jsonStringBuffer.toString();
		if (jsonString.contains(",")) {
			// 去掉最后一个“,”
			jsonString = jsonString.substring(0, jsonString.length() - 1);
		}
		jsonString += "}";
		return jsonString;
	}

	public List<String> getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(List<String> picUrl) {
		this.picUrl = picUrl;
	}
}
